﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Dapper;
using TimerTask.Model.Entity;

namespace TimerTask.Dal
{
    public class GroupInfoDal : BaseDal
    {
        /// <summary>
        /// 获取组名
        /// author:肖阳
        /// 2016-10-22 13:14:33
        /// </summary>
        /// <returns></returns>
        public List<GroupInfo> GetGroupInfos()
        {
            string sql = "select * from GroupInfo;";
            return DbConnection.Query<GroupInfo>(sql).ToList();
        }
    }
}
